package bitSetDemo0;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-05-03
 * Time: 10:54
 */
public class Test {
    public static void main(String[] args) {
        MyBitSet myBitSet  = new MyBitSet(18);
        int[] array ={1,3,4,2,5,7,10,18,1,1,1,1,1,2,3,4};
        for (int i = 0; i < array.length; i++) {
            myBitSet.set(array[i]);
        }
        System.out.println(myBitSet.getUsedSized());
        System.out.println(myBitSet.find(18));
        System.out.println(myBitSet.find(1));
        System.out.println(myBitSet.find(12));
        System.out.println("======================");
        myBitSet.reSet(1);
        System.out.println(myBitSet.find(1));
        myBitSet.reSet(11);
        System.out.println(myBitSet.find(11));
    }
}
